unit UnitPWFMX;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Unit1, DB, ADODB, StdCtrls, Grids, DBGridEh;

type
  TformPWFMX = class(Tbaseform)
    ADOQuery1: TADOQuery;
    Label1: TLabel;
    DataSource1: TDataSource;
    DBGridEh1: TDBGridEh;
    Button1: TButton;
    ADOQueryTemp: TADOQuery;
    procedure FormShow(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    DSFJLBid:Integer;//
  end;

var
  formPWFMX: TformPWFMX;

implementation

{$R *.dfm}

uses
  Unitconne;

procedure TformPWFMX.FormShow(Sender: TObject);
begin
  inherited;
  with ADOQueryTemp do
  begin
    Close;
    SQL.Clear;
    SQL.Add('select fact_name from dsfjlb where id=:id');
    Parameters.ParamByName('id').Value:=DSFJLBid;
    Open;
    Label1.Caption:=FieldValues['fact_name'];
  end;

  with ADOQuery1 do
  begin
    Close;
    Parameters.ParamByName('dsfjlbid').Value:= DSFJLBid;
    Open;
  end;
end;

procedure TformPWFMX.Button1Click(Sender: TObject);
begin
  inherited;
  
  close;
end;

end.
